/* layout Start */
html, body {
  width: 100%;
}

/* header */
.header-container {
  top: 0;
  background-color: rgba(222, 24, 27, 0.9);
}
.header-container,
.tabbar-container {
  left: 0;
  position: fixed;
  z-index: 1000;
  width: 100%;
  height: 2.5rem;
}

/*tabbar*/
.tabbar-container {
  bottom: 0;
  background-color: #fff;
  box-shadow: 0 0 10px 0 rgba(154, 141, 141, 0.6);
}

/*main-container*/
.main-container {
  padding: 2.5rem 0;
  background-color: #eee;
}

/*nav-container*/
.nav-container {
  background-color: #fff;
  margin-bottom: .5rem;
}


/* layout End */


/* components Start */
.navbar {
  display: flex;
  height: 100%;
}
.navbar-left,
.navbar-center,
.navbar-right {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}
.navbar-left,
.navbar-right {
  width: 2.2rem;
}
.navbar-center {
  flex: 1;
}
.navbar-left .iconfont,
.navbar-right .iconfont {
  color: #fff;
  font-size: 1.2rem;
}

/* searchBox */
.searchBox {
  display: flex;
  width: 100%;
  height: 1.6rem;
  border-radius: 0.8rem;
  background-color: #fff;
}
.searchBox-prepend,
.searchBox-input,
.searchBox-append {
  height: 100%;
}
.searchBox-prepend,
.searchBox-append {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 1.6rem;
}
.searchBox-input {
  flex: 1;
}
.searchBox .iconfont {
  color: #ccc;
  font-size: 0.9rem;
  font-weight: bold;
}

/*nav*/
.nav {
  display: flex;
  flex-wrap: wrap;
  padding: .8rem 0 .4rem;
}
.nav-item {
  width: 20%;
  margin-bottom: .4rem;
}
.nav-link {
  display: block;
  text-align: center;
}
.nav-img {
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: .2rem;
}
.nav-text {
  display: block;
}

/* content Start */
.recommend {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}
.recommend-item {
  width: 49.33333333%;
  background-color: #fff;
  box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.12);
  margin-bottom: .25rem;
}
.recommend-link {
  display: block;
  width: 100%;
  height: 100%;
}
.recommend-pic {
  width: 100%;
  padding: .75rem;
  margin-bottom: .4rem;
  background-color: rgba(0, 0, 0, .03);
  position: relative;
}
.recommend-img {
  width: 100%;
  height: 7.75rem;
  background-color: #fff;
}
.recommend-shadow {
  top: .75rem;
  right: .75rem;
  bottom: .75rem;
  left: .75rem;
  position: absolute;
  background-color: rgba(0, 0, 0, .03);
}
.recommend-name,
.recommend-origPrice,
.recommend-info {
  padding: 0 .25rem;
  margin-bottom: .4rem;
}
.recommend-name {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.recommend-origPrice {
  color: #ccc;
}
.recommend-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.recommend-price {
  color: rgb(255, 0, 0);
}
.recommend-price-num {
  font-size: 20px;
}
[data-dpr="2"] .recommend-price-num {
  font-size: 40px;
}
[data-dpr="3"] .recommend-price-num {
  font-size: 60px;
}

.tabbar,
.tabbar-item,
.tabbar-link {
  height: 100%;
}
.tabbar {
  display: flex;
}
.tabbar-item {
  width: 25%;
}
.tabbar-link {
  display: flex;
  flex-flow: column nowrap;
  justify-content: center;
  align-items: center;
}
.tabbar-link .iconfont {
  font-size: 1.2rem;
}
.tabbar-item-active .tabbar-link {
  color: #de181b;
}


/* content End */

/* components End */
